import {YvLocale} from "../../YvLocale";

export default {
    inject: ['YvConfigProvider'],
    data() {
        const i18nChangeLanguage: (value) => void = this.YvConfigProvider.changeLanguage

        return {
            i18nChangeLanguage
        }
    },

    computed: {
        locale(): YvLocale {
            return this.YvConfigProvider.locale.value
        }
    }
}